﻿using System;
using System.Collections;
/// <summary>
/// 消息
/// </summary>
public class AnnInfo {

    ArrayList _annList;
    Random _random;

    public AnnInfo()
    {
        _annList = new ArrayList();
        _random = new Random();
    }

    public void addAnn(string ann)
    {
        _annList.Add(ann);
    }

    public string getAnnRandom()
    {
        if (_annList.Count > 0)
        {
            return (string)_annList[_random.Next(0, _annList.Count)];
        }
        return "";
    }

    public void Clear()
    {
        _annList.Clear();
    }
}
